package com.efounder.adapter;

import androidx.annotation.Nullable;
import android.view.ViewGroup;

import com.efounder.bean.OrderDetail;
import com.efounder.holder.OrderDetailHolder;
import com.efounder.mobilemall.R;

import java.util.List;

/**
 * Created by Marcello on 2018/9/28.
 */
public class OrderDetailPreAdapter extends BaseAdapter<OrderDetail.OrderBean.OrderSaleInfoListBean,OrderDetailHolder> {

    /**
     * 设置数据,并设置点击回调接口
     *
     * @param list 数据集合
     */
    public OrderDetailPreAdapter(@Nullable List list) {
        super(list);
    }

    @Override
    public OrderDetailHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new OrderDetailHolder(parent, R.layout.item_order_detail_pre_info);
    }

}
